package tv.huan.demo;

import android.app.Activity;
import android.os.Bundle;

import androidx.annotation.Nullable;

import com.sunrain.toolkit.utils.log.L;

import eskit.sdk.core.EsData;
import eskit.sdk.core.EsManager;


public class MainActivity extends Activity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        EsData data = new EsData();
        data.setAppPackage("es.tv.huan.bili_HBGD");
        data.setAppDownloadUrl("assets://eslocal/es.bili_hbgd.zip");

        EsManager.get().start(data);
    }

    @Override
    protected void onPause() {
        super.onPause();
        L.logEF("FINISH");
        finish();
    }
}
